home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / libraries / newiff.lha / NewIFF / NewIFF39.lha / newiff39 / iffp / ftxt.h < prev    next >
C/C++ Source or Header  |  1993-09-28  |  2KB  |  53 lines

  1. /*-----------------------------------------------------------------------*
  2.  * FTXT.H  Definitions for formatted text
  3.  *
  4.  * This version for the Commodore-Amiga computer.
  5.  *----------------------------------------------------------------------*/
  6. #ifndef FTXT_H
  7. #define FTXT_H
  8.  
  9. #ifndef COMPILER_H
  10. #include "iffp/compiler.h"
  11. #endif
  12.  
  13. #include "iffp/iff.h"
  14.  
  15.  
  16. #define ID_FTXT      MAKE_ID('F','T','X','T')
  17. #define ID_CHRS      MAKE_ID('C','H','R','S')
  18. #define ID_FONS      MAKE_ID('F','O','N','S')
  19.  
  20. /* defined in iffp/iff.h
  21. #define ID_NAME      MAKE_ID('N', 'A', 'M', 'E')
  22. #define ID_Copyright MAKE_ID('(', 'c', ')', ' ')
  23. #define ID_AUTH      MAKE_ID('A', 'U', 'T', 'H')
  24. #define ID_ANNO      MAKE_ID('A', 'N', 'N', 'O')
  25. #define ID_BODY      MAKE_ID('B', 'O', 'D', 'Y')
  26. */
  27.  
  28. /* ---------- FontSpecifier (FONS) ---------------------------------------------*/
  29.  
  30. /* Note - for convenience, this structure is defined with a name array
  31.  * of Amiga MAXFONTPATH size.  The size of actual FONS chunks will
  32.  * depend oon the length of the name stored in the chunk
  33.  */
  34.  
  35. typedef struct {
  36.  
  37.     UBYTE id;       /* 0 through 9 is a font id number referenced by an SGR
  38.             control sequence selective parameter of 10 through 19.
  39.             Other values are reserved for future standardization.   */
  40.  
  41.     UBYTE pad1;         /* reserved for future use; store 0 here        */
  42.  
  43.     UBYTE proportional;     /* proportional font? 0 = unknown, 1 = no, 2 = yes      */
  44.  
  45.     UBYTE serif;            /* serif font? 0 = unknown, 1 = no, 2 = yes     */
  46.  
  47.     char name[256];        /* A NULL-terminated string naming the preferred font.   */
  48.  
  49.     } FontSpecifier;
  50.  
  51.  
  52. #endif
  53.